using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SnsUploadRequest : GeneratedMessageLite<SnsUploadRequest, SnsUploadRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SnsUploadRequest, SnsUploadRequest.Builder>
		{
			private bool resultIsReadOnly;
			private SnsUploadRequest result;
			protected override SnsUploadRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SnsUploadRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SnsUploadRequest DefaultInstanceForType
			{
				get
				{
					return SnsUploadRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public uint Type
			{
				get
				{
					return this.result.Type;
				}
				set
				{
					this.SetType(value);
				}
			}
			public uint StartPos
			{
				get
				{
					return this.result.StartPos;
				}
				set
				{
					this.SetStartPos(value);
				}
			}
			public uint TotalLen
			{
				get
				{
					return this.result.TotalLen;
				}
				set
				{
					this.SetTotalLen(value);
				}
			}
			public SKBuiltinBuffer_t Buffer
			{
				get
				{
					return this.result.Buffer;
				}
				set
				{
					this.SetBuffer(value);
				}
			}
			public string ClientId
			{
				get
				{
					return this.result.ClientId;
				}
				set
				{
					this.SetClientId(value);
				}
			}
			public uint FilterStype
			{
				get
				{
					return this.result.FilterStype;
				}
				set
				{
					this.SetFilterStype(value);
				}
			}
			public uint SyncFlag
			{
				get
				{
					return this.result.SyncFlag;
				}
				set
				{
					this.SetSyncFlag(value);
				}
			}
			public string Description
			{
				get
				{
					return this.result.Description;
				}
				set
				{
					this.SetDescription(value);
				}
			}
			public Builder()
			{
				this.result = SnsUploadRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SnsUploadRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SnsUploadRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SnsUploadRequest other = this.result;
					this.result = new SnsUploadRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SnsUploadRequest.Builder Clear()
			{
				this.result = SnsUploadRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SnsUploadRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SnsUploadRequest.Builder(this.result);
				}
				return new SnsUploadRequest.Builder().MergeFrom(this.result);
			}
			public override SnsUploadRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SnsUploadRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is SnsUploadRequest)
				{
					return this.MergeFrom((SnsUploadRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SnsUploadRequest.Builder MergeFrom(SnsUploadRequest other)
			{
				return this;
			}
			public override SnsUploadRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SnsUploadRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SnsUploadRequest._snsUploadRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SnsUploadRequest._snsUploadRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 32u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseRequest.Builder builder = BaseRequest.CreateBuilder();
								if (this.result.hasBaseRequest)
								{
									builder.MergeFrom(this.BaseRequest);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseRequest = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 16u)
							{
								this.result.hasType = input.ReadUInt32(ref this.result.type_);
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasStartPos = input.ReadUInt32(ref this.result.startPos_);
								continue;
							}
							if (num3 == 32u)
							{
								this.result.hasTotalLen = input.ReadUInt32(ref this.result.totalLen_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 50u)
						{
							if (num3 == 42u)
							{
								SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
								if (this.result.hasBuffer)
								{
									builder2.MergeFrom(this.Buffer);
								}
								input.ReadMessage(builder2, extensionRegistry);
								this.Buffer = builder2.BuildPartial();
								continue;
							}
							if (num3 == 50u)
							{
								this.result.hasClientId = input.ReadString(ref this.result.clientId_);
								continue;
							}
						}
						else
						{
							if (num3 == 56u)
							{
								this.result.hasFilterStype = input.ReadUInt32(ref this.result.filterStype_);
								continue;
							}
							if (num3 == 64u)
							{
								this.result.hasSyncFlag = input.ReadUInt32(ref this.result.syncFlag_);
								continue;
							}
							if (num3 == 74u)
							{
								this.result.hasDescription = input.ReadString(ref this.result.description_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public SnsUploadRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public SnsUploadRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public SnsUploadRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public SnsUploadRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public SnsUploadRequest.Builder SetType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasType = true;
				this.result.type_ = value;
				return this;
			}
			public SnsUploadRequest.Builder ClearType()
			{
				this.PrepareBuilder();
				this.result.hasType = false;
				this.result.type_ = 0u;
				return this;
			}
			public SnsUploadRequest.Builder SetStartPos(uint value)
			{
				this.PrepareBuilder();
				this.result.hasStartPos = true;
				this.result.startPos_ = value;
				return this;
			}
			public SnsUploadRequest.Builder ClearStartPos()
			{
				this.PrepareBuilder();
				this.result.hasStartPos = false;
				this.result.startPos_ = 0u;
				return this;
			}
			public SnsUploadRequest.Builder SetTotalLen(uint value)
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = true;
				this.result.totalLen_ = value;
				return this;
			}
			public SnsUploadRequest.Builder ClearTotalLen()
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = false;
				this.result.totalLen_ = 0u;
				return this;
			}
			public SnsUploadRequest.Builder SetBuffer(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBuffer = true;
				this.result.buffer_ = value;
				return this;
			}
			public SnsUploadRequest.Builder SetBuffer(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBuffer = true;
				this.result.buffer_ = builderForValue.Build();
				return this;
			}
			public SnsUploadRequest.Builder MergeBuffer(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBuffer && this.result.buffer_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.buffer_ = SKBuiltinBuffer_t.CreateBuilder(this.result.buffer_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.buffer_ = value;
				}
				this.result.hasBuffer = true;
				return this;
			}
			public SnsUploadRequest.Builder ClearBuffer()
			{
				this.PrepareBuilder();
				this.result.hasBuffer = false;
				this.result.buffer_ = null;
				return this;
			}
			public SnsUploadRequest.Builder SetClientId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasClientId = true;
				this.result.clientId_ = value;
				return this;
			}
			public SnsUploadRequest.Builder ClearClientId()
			{
				this.PrepareBuilder();
				this.result.hasClientId = false;
				this.result.clientId_ = "";
				return this;
			}
			public SnsUploadRequest.Builder SetFilterStype(uint value)
			{
				this.PrepareBuilder();
				this.result.hasFilterStype = true;
				this.result.filterStype_ = value;
				return this;
			}
			public SnsUploadRequest.Builder ClearFilterStype()
			{
				this.PrepareBuilder();
				this.result.hasFilterStype = false;
				this.result.filterStype_ = 0u;
				return this;
			}
			public SnsUploadRequest.Builder SetSyncFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasSyncFlag = true;
				this.result.syncFlag_ = value;
				return this;
			}
			public SnsUploadRequest.Builder ClearSyncFlag()
			{
				this.PrepareBuilder();
				this.result.hasSyncFlag = false;
				this.result.syncFlag_ = 0u;
				return this;
			}
			public SnsUploadRequest.Builder SetDescription(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasDescription = true;
				this.result.description_ = value;
				return this;
			}
			public SnsUploadRequest.Builder ClearDescription()
			{
				this.PrepareBuilder();
				this.result.hasDescription = false;
				this.result.description_ = "";
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int TypeFieldNumber = 2;
		public const int StartPosFieldNumber = 3;
		public const int TotalLenFieldNumber = 4;
		public const int BufferFieldNumber = 5;
		public const int ClientIdFieldNumber = 6;
		public const int FilterStypeFieldNumber = 7;
		public const int SyncFlagFieldNumber = 8;
		public const int DescriptionFieldNumber = 9;
		private static readonly SnsUploadRequest defaultInstance;
		private static readonly string[] _snsUploadRequestFieldNames;
		private static readonly uint[] _snsUploadRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasType;
		private uint type_;
		private bool hasStartPos;
		private uint startPos_;
		private bool hasTotalLen;
		private uint totalLen_;
		private bool hasBuffer;
		private SKBuiltinBuffer_t buffer_;
		private bool hasClientId;
		private string clientId_ = "";
		private bool hasFilterStype;
		private uint filterStype_;
		private bool hasSyncFlag;
		private uint syncFlag_;
		private bool hasDescription;
		private string description_ = "";
		private int memoizedSerializedSize = -1;
		public static SnsUploadRequest DefaultInstance
		{
			get
			{
				return SnsUploadRequest.defaultInstance;
			}
		}
		public override SnsUploadRequest DefaultInstanceForType
		{
			get
			{
				return SnsUploadRequest.DefaultInstance;
			}
		}
		protected override SnsUploadRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public uint Type
		{
			get
			{
				return this.type_;
			}
		}
		public uint StartPos
		{
			get
			{
				return this.startPos_;
			}
		}
		public uint TotalLen
		{
			get
			{
				return this.totalLen_;
			}
		}
		public SKBuiltinBuffer_t Buffer
		{
			get
			{
				return this.buffer_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public string ClientId
		{
			get
			{
				return this.clientId_;
			}
		}
		public uint FilterStype
		{
			get
			{
				return this.filterStype_;
			}
		}
		public uint SyncFlag
		{
			get
			{
				return this.syncFlag_;
			}
		}
		public string Description
		{
			get
			{
				return this.description_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasType && this.hasStartPos && this.hasTotalLen && this.hasBuffer && this.BaseRequest.IsInitialized && this.Buffer.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasType)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.Type);
				}
				if (this.hasStartPos)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.StartPos);
				}
				if (this.hasTotalLen)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.TotalLen);
				}
				if (this.hasBuffer)
				{
					num += CodedOutputStream.ComputeMessageSize(5, this.Buffer);
				}
				if (this.hasClientId)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.ClientId);
				}
				if (this.hasFilterStype)
				{
					num += CodedOutputStream.ComputeUInt32Size(7, this.FilterStype);
				}
				if (this.hasSyncFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(8, this.SyncFlag);
				}
				if (this.hasDescription)
				{
					num += CodedOutputStream.ComputeStringSize(9, this.Description);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SnsUploadRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] snsUploadRequestFieldNames = SnsUploadRequest._snsUploadRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, snsUploadRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasType)
			{
				output.WriteUInt32(2, snsUploadRequestFieldNames[8], this.Type);
			}
			if (this.hasStartPos)
			{
				output.WriteUInt32(3, snsUploadRequestFieldNames[5], this.StartPos);
			}
			if (this.hasTotalLen)
			{
				output.WriteUInt32(4, snsUploadRequestFieldNames[7], this.TotalLen);
			}
			if (this.hasBuffer)
			{
				output.WriteMessage(5, snsUploadRequestFieldNames[1], this.Buffer);
			}
			if (this.hasClientId)
			{
				output.WriteString(6, snsUploadRequestFieldNames[2], this.ClientId);
			}
			if (this.hasFilterStype)
			{
				output.WriteUInt32(7, snsUploadRequestFieldNames[4], this.FilterStype);
			}
			if (this.hasSyncFlag)
			{
				output.WriteUInt32(8, snsUploadRequestFieldNames[6], this.SyncFlag);
			}
			if (this.hasDescription)
			{
				output.WriteString(9, snsUploadRequestFieldNames[3], this.Description);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasType)
			{
				num ^= this.type_.GetHashCode();
			}
			if (this.hasStartPos)
			{
				num ^= this.startPos_.GetHashCode();
			}
			if (this.hasTotalLen)
			{
				num ^= this.totalLen_.GetHashCode();
			}
			if (this.hasBuffer)
			{
				num ^= this.buffer_.GetHashCode();
			}
			if (this.hasClientId)
			{
				num ^= this.clientId_.GetHashCode();
			}
			if (this.hasFilterStype)
			{
				num ^= this.filterStype_.GetHashCode();
			}
			if (this.hasSyncFlag)
			{
				num ^= this.syncFlag_.GetHashCode();
			}
			if (this.hasDescription)
			{
				num ^= this.description_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SnsUploadRequest snsUploadRequest = value as SnsUploadRequest;
			return snsUploadRequest != null && (this.hasBaseRequest == snsUploadRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(snsUploadRequest.baseRequest_))) && (this.hasType == snsUploadRequest.hasType && (!this.hasType || this.type_.Equals(snsUploadRequest.type_))) && (this.hasStartPos == snsUploadRequest.hasStartPos && (!this.hasStartPos || this.startPos_.Equals(snsUploadRequest.startPos_))) && (this.hasTotalLen == snsUploadRequest.hasTotalLen && (!this.hasTotalLen || this.totalLen_.Equals(snsUploadRequest.totalLen_))) && (this.hasBuffer == snsUploadRequest.hasBuffer && (!this.hasBuffer || this.buffer_.Equals(snsUploadRequest.buffer_))) && (this.hasClientId == snsUploadRequest.hasClientId && (!this.hasClientId || this.clientId_.Equals(snsUploadRequest.clientId_))) && (this.hasFilterStype == snsUploadRequest.hasFilterStype && (!this.hasFilterStype || this.filterStype_.Equals(snsUploadRequest.filterStype_))) && (this.hasSyncFlag == snsUploadRequest.hasSyncFlag && (!this.hasSyncFlag || this.syncFlag_.Equals(snsUploadRequest.syncFlag_))) && (this.hasDescription == snsUploadRequest.hasDescription && (!this.hasDescription || this.description_.Equals(snsUploadRequest.description_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SnsUploadRequest, SnsUploadRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<SnsUploadRequest, SnsUploadRequest.Builder>.PrintField("Type", this.hasType, this.type_, writer);
			GeneratedMessageLite<SnsUploadRequest, SnsUploadRequest.Builder>.PrintField("StartPos", this.hasStartPos, this.startPos_, writer);
			GeneratedMessageLite<SnsUploadRequest, SnsUploadRequest.Builder>.PrintField("TotalLen", this.hasTotalLen, this.totalLen_, writer);
			GeneratedMessageLite<SnsUploadRequest, SnsUploadRequest.Builder>.PrintField("Buffer", this.hasBuffer, this.buffer_, writer);
			GeneratedMessageLite<SnsUploadRequest, SnsUploadRequest.Builder>.PrintField("ClientId", this.hasClientId, this.clientId_, writer);
			GeneratedMessageLite<SnsUploadRequest, SnsUploadRequest.Builder>.PrintField("FilterStype", this.hasFilterStype, this.filterStype_, writer);
			GeneratedMessageLite<SnsUploadRequest, SnsUploadRequest.Builder>.PrintField("SyncFlag", this.hasSyncFlag, this.syncFlag_, writer);
			GeneratedMessageLite<SnsUploadRequest, SnsUploadRequest.Builder>.PrintField("Description", this.hasDescription, this.description_, writer);
		}
		public static SnsUploadRequest ParseFrom(byte[] data)
		{
			return SnsUploadRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SnsUploadRequest MakeReadOnly()
		{
			return this;
		}
		public static SnsUploadRequest.Builder CreateBuilder()
		{
			return new SnsUploadRequest.Builder();
		}
		public override SnsUploadRequest.Builder ToBuilder()
		{
			return SnsUploadRequest.CreateBuilder(this);
		}
		public override SnsUploadRequest.Builder CreateBuilderForType()
		{
			return new SnsUploadRequest.Builder();
		}
		public static SnsUploadRequest.Builder CreateBuilder(SnsUploadRequest prototype)
		{
			return new SnsUploadRequest.Builder(prototype);
		}
		static SnsUploadRequest()
		{
			SnsUploadRequest.defaultInstance = new SnsUploadRequest().MakeReadOnly();
			SnsUploadRequest._snsUploadRequestFieldNames = new string[]
			{
				"BaseRequest",
				"Buffer",
				"ClientId",
				"Description",
				"FilterStype",
				"StartPos",
				"SyncFlag",
				"TotalLen",
				"Type"
			};
			SnsUploadRequest._snsUploadRequestFieldTags = new uint[]
			{
				10u,
				42u,
				50u,
				74u,
				56u,
				24u,
				64u,
				32u,
				16u
			};
			object.ReferenceEquals(micromsg.Proto.SnsUploadRequest.Descriptor, null);
		}
	}
}
